package com.book.entity;



import java.util.Date;
import com.github.drinkjava2.jdialects.annotation.jpa.*;
import com.github.drinkjava2.jsqlbox.*;

@Table(name="book_member")
public class BookMember extends ActiveRecord<BookMember> {

	public static final String TABLE_NAME = "book_member";

	public static final String MEMBER_ID = "member_id";

	public static final String LOGINNAME = "loginname";

	public static final String PASSWORD = "password";

	public static final String EMAIL = "email";

	public static final String PHONE = "phone";

	public static final String DUEDATE = "duedate";

	public static final String CREATE_TIME = "create_time";

	public static final String UPDATE_TIME = "update_time";



	/**
	 * 会员ID
	 */
	@Id
	@Column(name="member_id")
	private Integer memberId;



	/**
	 * 登录名称
	 */
	@Column(name="loginname", length=1020)
	private String loginname;

	/**
	 * 登录密码
	 */
	@Column(name="password", length=1020)
	private String password;

	/**
	 * 邮箱
	 */
	@Column(name="email", length=1020)
	private String email;

	/**
	 * 电话
	 */
	@Column(name="phone", length=1020)
	private String phone;

	/**
	 * 到期日期
	 */
	private Date duedate;

	/**
	 * 创建时间
	 */
	@Column(name="create_time")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@Column(name="update_time")
	private Date updateTime;



	public Integer getMemberId(){
		return memberId;
	}

	public BookMember setMemberId(Integer memberId){
		this.memberId=memberId;
		return this;
	}

	public String getLoginname(){
		return loginname;
	}

	public BookMember setLoginname(String loginname){
		this.loginname=loginname;
		return this;
	}

	public String getPassword(){
		return password;
	}

	public BookMember setPassword(String password){
		this.password=password;
		return this;
	}

	public String getEmail(){
		return email;
	}

	public BookMember setEmail(String email){
		this.email=email;
		return this;
	}

	public String getPhone(){
		return phone;
	}

	public BookMember setPhone(String phone){
		this.phone=phone;
		return this;
	}

	public Date getDuedate(){
		return duedate;
	}

	public BookMember setDuedate(Date duedate){
		this.duedate=duedate;
		return this;
	}

	public Date getCreateTime(){
		return createTime;
	}

	public BookMember setCreateTime(Date createTime){
		this.createTime=createTime;
		return this;
	}

	public Date getUpdateTime(){
		return updateTime;
	}

	public BookMember setUpdateTime(Date updateTime){
		this.updateTime=updateTime;
		return this;
	}

}
